package com.thomas.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.thomas.dao.CommentDao;
import com.thomas.entity.Comment;
import com.thomas.service.CommentService;

/** 
 * @ClassName: CommentServiceImpl 
 * @Description: 评论Service实现类
 * @author thomas_liu  
 * @date 2017年5月6日 下午14:46:30 
 *  
 */
@Service("commentService")
public class CommentServiceImpl implements CommentService {
	
	@Autowired
	private CommentDao commentDao;

	public List<Comment> list(Map<String, Object> map) {
		return commentDao.list(map);
	}

	public int add(Comment comment) {
		return commentDao.add(comment);
	}

	public Long getTotal(Map<String, Object> map) {
		return commentDao.getTotal(map);
	}

	public Integer delete(Integer id) {
		return commentDao.delete(id);
	}

	public int update(Comment comment) {
		return commentDao.update(comment);
	}

	

}
